Advisable

public interface Advisable<P extends Callback>

A common interface that all objects providing callbacks must implement.

Parameters

<P>

the type of the callback

Inheritors

Functions

Link copied to clipboard
public abstract Optional<C> get<C extends P>(Class<C> callbackClass)
Returns an Optional that contains the callback of the given type or an empty Optional if there is no registered callback with the given type.
Link copied to clipboard
public abstract C remove<C extends P>(Class<C> callbackClass)
Removes a particular service callback.
Link copied to clipboard
public abstract C set<C extends P>(Class<C> callbackClass, C callback)
Sets a particular service callback.